<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/3/31
  Time: 7:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>基本信息</title>
</head>
<body>
<h1>老师基本信息</h1>
<input value="返回" type="button" onclick="back()">
<input value="修改信息" type="button" onclick="next()">
<p>姓名:<br>${teacher.getName()}</p><br>
<p>管理班级:
<c:forEach items="${teacher.getGrade()}" var="grade">
    <p>${grade}班 </p>
</c:forEach>
</p>
<br>
<div >科目:<br>${teacher.getSubject()}</div><br>
<c:if test="${teacher.getIntruduction()!=null}">
    <p>个人简介:<br>${teacher.getIntruduction()}</p><br>
</c:if>
<c:if test="${teacher.getIntruduction()==null}">
    <p>个人简介:</p><br>
    <p style="color: gray">这个人很懒,什么都没有留下</p>
</c:if>
<script type="text/javascript">
    function next(){
        window.location="changemsg.jsp"
    }
    function back(){
        window.location="teacher.jsp"
    }
</script>
</body>
</html>
